package cn.edu.shou.lab.config.query;

import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public class Term {
    private List<Condition> conditions;//查询条件
    private List<Map<String, String>> relations;//查询条件的连接关系
    private Order order;//排序
    private Pageable pageable;//分页

    public List<Condition> getConditions() {
        return conditions;
    }

    public void setConditions(List<Condition> conditions) {
        this.conditions = conditions;
    }

    public List<Map<String, String>> getRelations() {
        return relations;
    }

    public void setRelations(List<Map<String, String>> relations) {
        this.relations = relations;
    }

    public Pageable getPageable() {
        return pageable;
    }

    public void setPageable(Pageable pageable) {
        this.pageable = pageable;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }


    public Term(List<Condition> conditions, List<Map<String, String>> relations, Order order) {
        this.conditions = conditions;
        this.relations = relations;
        this.order = order;
    }

    public Term() {
    }
}

